using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace MobileClient
{
	/// <summary>
	/// Summary description for frmSplashScreen.
	/// </summary>
	public class frmSplashScreen : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Timer tmrWait;
		private System.Windows.Forms.Label lblTitle;
		private System.Windows.Forms.Label lblCopyright;
		private System.Windows.Forms.PictureBox pbSplashImage;
	
		public frmSplashScreen()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmSplashScreen));
            this.tmrWait = new System.Windows.Forms.Timer();
            this.pbSplashImage = new System.Windows.Forms.PictureBox();
            this.lblTitle = new System.Windows.Forms.Label();
            this.lblCopyright = new System.Windows.Forms.Label();
            this.SuspendLayout();
            // 
            // tmrWait
            // 
            this.tmrWait.Interval = 5000;
            this.tmrWait.Tick += new System.EventHandler(this.tmrWait_Tick);
            // 
            // pbSplashImage
            // 
            this.pbSplashImage.Image = ((System.Drawing.Image)(resources.GetObject("pbSplashImage.Image")));
            this.pbSplashImage.Location = new System.Drawing.Point(4, 4);
            this.pbSplashImage.Name = "pbSplashImage";
            this.pbSplashImage.Size = new System.Drawing.Size(232, 164);
            this.pbSplashImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
            // 
            // lblTitle
            // 
            this.lblTitle.Font = new System.Drawing.Font("Tahoma", 11.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))));
            this.lblTitle.ForeColor = System.Drawing.Color.Blue;
            this.lblTitle.Location = new System.Drawing.Point(8, 176);
            this.lblTitle.Name = "lblTitle";
            this.lblTitle.Size = new System.Drawing.Size(224, 24);
            this.lblTitle.Text = "Forms Anywhere V2009.0.1";
            this.lblTitle.TextAlign = System.Drawing.ContentAlignment.TopCenter;
            // 
            // lblCopyright
            // 
            this.lblCopyright.Location = new System.Drawing.Point(8, 208);
            this.lblCopyright.Name = "lblCopyright";
            this.lblCopyright.Size = new System.Drawing.Size(224, 52);
            this.lblCopyright.Text = "Copyright 2004-2009 by Jim Lavin, All Rights Reserved. Support can be found at ht" +
                "tp://jimlavin.net";
            this.lblCopyright.TextAlign = System.Drawing.ContentAlignment.TopCenter;
            // 
            // frmSplashScreen
            // 
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
            this.ClientSize = new System.Drawing.Size(238, 295);
            this.Controls.Add(this.lblCopyright);
            this.Controls.Add(this.lblTitle);
            this.Controls.Add(this.pbSplashImage);
            this.Name = "frmSplashScreen";
            this.Text = "Forms Anywhere";
            this.Load += new System.EventHandler(this.frmSplashScreen_Load);
            this.ResumeLayout(false);

		}
		#endregion

		private void frmSplashScreen_Load(object sender, System.EventArgs e)
		{
			tmrWait.Enabled = true;
			clsModifyButtons.HideDoneButton(clsModifyButtons.GetHWnd(this));
			clsModifyButtons.HideXButton(clsModifyButtons.GetHWnd(this));
		}

		private void tmrWait_Tick(object sender, System.EventArgs e)
		{
			this.Close();
		}
	}
}
